home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 1
/
Cream of the Crop 1.iso
/
EDUCATE
/
TURING10.ARJ
/
EVENODD
< prev
next >
Wrap
Text File
|
1991-12-28
|
201b
|
12 lines
# turing machine to determine if a number is even (11) or odd (1)
# find number
0,0->0,0,R
0,1->1,0,R
1,1->2,0,R
1,0->3,0,R
2,1->1,0,R
2,0->3,1,R
3,0->4,1,R
3,1->4,1,R
4,0->4,0,S
4,0->4,0,S